package com.koron.order.common.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.base.BaseQueryBean;
import com.koron.common.core.business.common.service.CommonService;
import com.koron.order.common.bean.po.OrderDispatchTeam;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * (OrderDispatchTeam)表服务接口
 *
 * @author makejava
 * @since 2021-09-03 15:59:47
 */
public interface OrderDispatchTeamService extends CommonService {

    int insert(SessionFactory factory, OrderDispatchTeam orderDispatchTeam);

    int insertBatch(SessionFactory factory, List<OrderDispatchTeam> orderDispatchTeams);

    int update(SessionFactory factory, OrderDispatchTeam orderDispatchTeam);

    int deleteById(SessionFactory factory, String id);

    int deleteByOrderId(SessionFactory factory, String orderId);

    OrderDispatchTeam queryById(SessionFactory factory, String id);

    List<OrderDispatchTeam> queryByDispatchId(SessionFactory factory, String dispatchId);

    PageInfo queryList(SessionFactory factory, OrderDispatchTeam orderDispatchTeam, BaseQueryBean pageBean);

}
